package com.linkhub.oms.admin.modules.logistic.domain.param;

import com.linkhub.oms.admin.modules.user.domain.param.BaseUserParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Jaycle
 * @version 1.0.0
 * @Description LogisticUrlEditParam.java
 * @createTime 2024/05/03 13:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "LogisticUrlEditParam", description = "LogisticUrlEditParam")
public class LogisticUrlEditParam extends BaseUserParam implements Serializable {
    @ApiModelProperty(value = "系统商店id", required = true)
    @NotBlank(message = "{logistic.channel.priority.sysShopId.notEmpty}")
    private String sysShopId;

    @ApiModelProperty(value = "运输类型，1-全程运输单；2-尾程运输单", required = true)
    @Range(min = 1, max = 2, message = "{validation.logistic.url.transport.type.range}")
    private Integer transportType;

    @ApiModelProperty(value = "查询网址", required = true)
    @Length(min = 1, max = 128, message = "{validation.logistic.url.query.url.length}")
    private String queryUrl;
}
